package com.gxuwz.yischool;


import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;

import androidx.appcompat.app.AppCompatActivity;

public class LoginActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_homepage);

        ImageView imageView1=findViewById(R.id.iv_erweima);
        ImageView imageView2=findViewById(R.id.iv_card_add_maney);
        ImageView imageView3=findViewById(R.id.iv_maney_query);
        ImageView imageView4=findViewById(R.id.iv_school);
        ImageView imageView5=findViewById(R.id.iv_new);
        ImageView imageView6=findViewById(R.id.iv_cardtrade);
        ImageView imageView7=findViewById(R.id.iv_cardloss);
        ImageView imageView8=findViewById(R.id.iv_cardfind);
        ImageView imageView9=findViewById(R.id.iv_message);
        ImageView imageView10=findViewById(R.id.iv_schoolcard);
        ImageView imageView11=findViewById(R.id.iv_me);
        ImageView imageView12=findViewById(R.id.iv_ewm);
        ImageView imageView13=findViewById(R.id.iv_cardadd);

        imageView1.setOnClickListener(new View.OnClickListener(){
            @Override
            public void onClick(View v) {// 当ImageView被点击时，启动SecondActivity
                Intent intent = new Intent(LoginActivity.this, EwmActivity.class);
                startActivity(intent);
            }
        });
        imageView2.setOnClickListener(new View.OnClickListener(){
            @Override
            public  void onClick(View v){
                Intent intent=new Intent(LoginActivity.this,CardAddManeyActivity.class);
                startActivity(intent);
            }
        });
        imageView3.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent=new Intent(LoginActivity.this,CardBalanceActivity.class);
                startActivity(intent);
            }
        });
        imageView4.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent=new Intent(LoginActivity.this,SchoolActivity.class);
                startActivity(intent);
            }
        });
        imageView5.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent=new Intent(LoginActivity.this,NewActivity.class);
                startActivity(intent);
            }
        });
        imageView6.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent=new Intent(LoginActivity.this,CardTradeActivity.class);
                startActivity(intent);
            }
        });
        imageView7.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent=new Intent(LoginActivity.this,CardLossActivity.class);
                startActivity(intent);
            }
        });
        imageView8.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent=new Intent(LoginActivity.this,CardFindActivity.class);
                startActivity(intent);
            }
        });
        imageView9.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent=new Intent(LoginActivity.this,MessageActivity.class);
                startActivity(intent);
            }
        });
        imageView10.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent=new Intent(LoginActivity.this,SchoolcardActivity.class);
                startActivity(intent);
            }
        });
        imageView11.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent=new Intent(LoginActivity.this,MeActivity.class);
                startActivity(intent);
            }
        });
        imageView12.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent=new Intent(LoginActivity.this,EwmActivity.class);
                startActivity(intent);
            }
        });
        imageView13.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent=new Intent(LoginActivity.this,CardAddManeyActivity.class);
                startActivity(intent);
            }
        });
    }
}
